package com.itheima.homework.homework1;

import java.util.ArrayList;

/**
 *
 *员工
 */
public class Clerk extends Employee{

    //经理
    public String manager;

    @Override
    public void showMsg(ArrayList<Employee> employees) {
        for (int i = 0; i < employees.size(); i++) {
            Employee e = employees.get(i);
            if (e.getWorkId().contains("C")){
                System.out.println("销售部的:" +e.getName() + ",员工编号:" + e.getWorkId());
            }

            if(e.getWorkId().contains("M")){
                System.out.println("他的经理为:" + e.getName());
            }

        }
    }

    public Clerk() {
    }

    public Clerk(String manager) {
        this.manager = manager;
    }

    public String getManager() {
        return manager;
    }

    public void setManager(String manager) {
        this.manager = manager;
    }
}
